package com.xilixili.miaomi.wechat.entity;

/**
 * Created by liumin on 2017/12/19.
 */

public class UserInfo {
    private String avatar = "";
    private String nick = "";
    private String username = "";

    public UserInfo(){}
    public UserInfo(String avatar, String nick, String username) {
        this.avatar = avatar;
        this.nick = nick;
        this.username = username;
    }

    public boolean checkValid() {
        if(nick == null || nick.isEmpty() || username == null || username.isEmpty()) {
            return false;
        }
        return true;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                ", avatar='" + avatar + '\'' +
                ", nick='" + nick  + '\'' +
                ", username='" + username  + '\'' +
                '}';
    }
}
